package com.bluesea.report.entity;

import java.io.Serializable;
import java.util.Date;


/**
 * 客户表
 * Customer实体类
* @ClassName: Customer
* @author 李爽
* @date 2017年8月15日 下午4:50:28
* @version V1.0
*/
public class Customer implements Serializable {

	private static final long serialVersionUID = 8816843691113974210L;
	private Integer id; // ID
	private Integer contractId;
	private String customerNum; // 客户编号
	private String customerName; // 客户中文名称
	private String customerEname; // 客户英文名称
	private String customerAbbreviation; // 客户简称
	private Integer customerProperty; // 客户性质
	private Integer customerType; // 客户类型
	private Integer industryCategory; // 行业类别
	private String companyWebsite; // 公司网址
	private String registeredAddress; // 注册地址
	private String registeredEaddress; // 英文注册地址
	private String legalRepresentative; // 法人代表
	private String contactDepartment; // 联系部门
	private String contactAaddress; // 联系地址
	private String contactZipCode; // 联系邮编
	private String telephone; // 联系电话1
	private String telephoneOther; // 联系电话2
	private String fax; // 传真
	private String email; // EMAIL
	private String remark; // 备注
	private Integer salespersonId; // 销售id
	private String kingdeeNum; // 金蝶编号=客户编号
	private String operator; // 变更人
	private Date createTime; // 创建时间
	private Date modifyTime; // 修改时间
	private Integer isServing;//客户在服状态
    private Integer isInvalid;//是否作废
    private Integer branchOfficeId;//分公司
    private Integer detailId; //明细表的id
	
	/**
	 * set、get方法
	 * @Title: getId
	 * @return Integer    返回类型
	 * @author 李爽
	 * @throws
	 */
    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getContractId() {
		return contractId;
	}

	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}

	public String getCustomerNum() {
		return customerNum;
	}

	public void setCustomerNum(String customerNum) {
		this.customerNum = customerNum;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerEname() {
		return customerEname;
	}

	public void setCustomerEname(String customerEname) {
		this.customerEname = customerEname;
	}

	public String getCustomerAbbreviation() {
		return customerAbbreviation;
	}

	public void setCustomerAbbreviation(String customerAbbreviation) {
		this.customerAbbreviation = customerAbbreviation;
	}

	public Integer getCustomerProperty() {
		return customerProperty;
	}

	public void setCustomerProperty(Integer customerProperty) {
		this.customerProperty = customerProperty;
	}

	public Integer getCustomerType() {
		return customerType;
	}

	public void setCustomerType(Integer customerType) {
		this.customerType = customerType;
	}

	public Integer getIndustryCategory() {
		return industryCategory;
	}

	public void setIndustryCategory(Integer industryCategory) {
		this.industryCategory = industryCategory;
	}

	public String getCompanyWebsite() {
		return companyWebsite;
	}

	public void setCompanyWebsite(String companyWebsite) {
		this.companyWebsite = companyWebsite;
	}

	public String getRegisteredAddress() {
		return registeredAddress;
	}

	public void setRegisteredAddress(String registeredAddress) {
		this.registeredAddress = registeredAddress;
	}

	public String getRegisteredEaddress() {
		return registeredEaddress;
	}

	public void setRegisteredEaddress(String registeredEaddress) {
		this.registeredEaddress = registeredEaddress;
	}

	public String getLegalRepresentative() {
		return legalRepresentative;
	}

	public void setLegalRepresentative(String legalRepresentative) {
		this.legalRepresentative = legalRepresentative;
	}

	public String getContactDepartment() {
		return contactDepartment;
	}

	public void setContactDepartment(String contactDepartment) {
		this.contactDepartment = contactDepartment;
	}

	public String getContactAaddress() {
		return contactAaddress;
	}

	public void setContactAaddress(String contactAaddress) {
		this.contactAaddress = contactAaddress;
	}

	public String getContactZipCode() {
		return contactZipCode;
	}

	public void setContactZipCode(String contactZipCode) {
		this.contactZipCode = contactZipCode;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getTelephoneOther() {
		return telephoneOther;
	}

	public void setTelephoneOther(String telephoneOther) {
		this.telephoneOther = telephoneOther;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSalespersonId() {
		return salespersonId;
	}

	public void setSalespersonId(Integer salespersonId) {
		this.salespersonId = salespersonId;
	}

	public String getKingdeeNum() {
		return kingdeeNum;
	}

	public void setKingdeeNum(String kingdeeNum) {
		this.kingdeeNum = kingdeeNum;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Integer getIsServing() {
		return isServing;
	}

	public void setIsServing(Integer isServing) {
		this.isServing = isServing;
	}

	public Integer getIsInvalid() {
		return isInvalid;
	}

	public void setIsInvalid(Integer isInvalid) {
		this.isInvalid = isInvalid;
	}

	public Integer getBranchOfficeId() {
		return branchOfficeId;
	}

	public void setBranchOfficeId(Integer branchOfficeId) {
		this.branchOfficeId = branchOfficeId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getDetailId() {
		return detailId;
	}

	public void setDetailId(Integer detailId) {
		this.detailId = detailId;
	}


	

	

	
	/**
	 * 无参构造方法
	 * <p>Title: </p>
	 * <p>Description: </p>
	 * @author 李爽
	 * @date 2017年8月17日 上午2:21:19
	 * @version V1.0
	 */
	public Customer() {

	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Customer other = (Customer) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}
